<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>后台登录</title>
<meta name="author" content="DeathGhost" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<style>
body {
	height: 100%;
	background: #16a085;
	overflow: hidden;
}

canvas {
	z-index: -1;
	position: absolute;
}
</style>

</head>
<body>

<form action="/jieyes2/den" method="post"  id="form" onclick="checkUser1()">
<!-- <input type="hidden" name="operate" id="operate">
 -->	<dl class="admin_login">
		<dt>
			<strong>管理员登录</strong> 
		</dt>
		<dd class="user_icon">
			<input type="text" placeholder="账号" class="login_txtbx"  name="username" id="username"/>
		</dd>
		<dd class="pwd_icon">
			<input type="password" placeholder="密码" class="login_txtbx" name="password" id="password" />
		</dd>
		<dd>
			<input type="submit" value="立即登录" class="submit_btn" onclick="checkUser2()" id="login"/>
		</dd>
		<dd>
			<p>花店 版权所有</p>
			<p>项目组</p>
		</dd>
	</dl>
	</form>
</body>
<script src="js/jquery.js"></script>
<script src="js/verificationNumbers.js"></script>
<script src="js/Particleground.js"></script>
<script>
		$('body').particleground({
			dotColor : '#5cbdaa',
			lineColor : '#5cbdaa'
		});
		
	/* 	
    //登陆使用单击事件进行验证提交
    function checkUser2() {
        var username=$('#username').val();
        var password=$('#password').val();
        if(''==username){
            alert('用户名不能为空！');
            return false;
		}
		if(''==password){
            alert('密码不能为空！');
            return false;
		}
		$('#operate').val('login');
        $('#form').get(0).action='../den';
        $('#form').get(0).submit();
    } */
		function checkUser1(){
		 var username=$('#username').val();
        var password=$('#password').val();
        if(''==username){
            alert('用户名不能为空！');
            return false;
		}
		if(''==password){
            alert('密码不能为空！');
            return false;
		}
		document.getElementById("form").submit();
		
		}

</script>
</html>
